package com.woohua.demo.strategy.dealer;


import com.woohua.demo.service.OrderService;
import com.woohua.demo.strategy.DemoStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * @author wooHua
 * @date 2022/6/17 9:53
 * @description
 */
@Component
public abstract class DemoAbstractStrategy implements DemoStrategy {

    @Autowired
    protected OrderService orderService;

    @Override
    public String say() {
        System.out.println("DemoStrategy.say");
        orderService.say("hello world");
        return "success";
    }
}
